import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class IosStyleCalendar extends StatelessWidget {
  final int year;
  final int month;
  const IosStyleCalendar({super.key, required this.year, required this.month});

  @override
  Widget build(BuildContext context) {
    return Container(
      decoration:  BoxDecoration(
        boxShadow: [BoxShadow(color: Colors.black26,offset: const Offset(8, 8),blurRadius: 10.r,spreadRadius: 1.r)],
      ),
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Container(
            width: 90.w,
            height: 30.w,
            decoration:  BoxDecoration(
                color: const Color(0xffef233c),
                borderRadius:
                BorderRadius.only(topLeft:Radius.circular(10.r),topRight:Radius.circular(10.r))),
            child: Center(
              child: Text(
                '$year',
                style:  TextStyle(
                  fontSize: 25.sp,
                  fontWeight: FontWeight.w900,
                  color: Colors.white,
                ),
              ),
            ),
          ),
          Container(
            width: 90.w,
            height: 60.w,
            decoration:  BoxDecoration(
                color: Colors.white,
                borderRadius:
                BorderRadius.only(bottomLeft:Radius.circular(10.r),bottomRight:Radius.circular(10.r))),
            child: Center(
              child: Text(
                '$month月',
                style:  TextStyle(
                    fontSize: 40.sp,
                    // fontWeight: FontWeight.w900,
                    color: Colors.black),
              ),
            ),
          )
        ],
      ),
    );
  }
}
